package com.snapan.entity;

import java.util.Date;

/**
 * 邮箱验证码表
 */
public class EmailVerification {

    /**
     * 验证码ID
     */
    private Long id;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 验证码
     */
    private String verificationCode;

    /**
     * 验证码类型：1-注册，2-重置密码
     */
    private Byte type;

    /**
     * 过期时间
     */
    private Date expireTime;

    /**
     * 是否已使用：0-未使用，1-已使用
     */
    private Byte used;

    /**
     * 创建时间
     */
    private Date createTime;

    public EmailVerification() {}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Byte getUsed() {
        return used;
    }

    public void setUsed(Byte used) {
        this.used = used;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
